<cfsetting enablecfoutputonly="true" />
<!--- 

|| DESCRIPTION || 
$Description: Image Gallery -- standard listing $
$TODO: $

|| DEVELOPER ||
$Developer: Josen Ruiseco (josen.ruiseco@gomotorbids.com) $
--->
<!--- @@displayname: Standard Page --->

<cfimport taglib="/farcry/core/tags/webskin" prefix="skin">
<cfimport taglib="/farcry/core/tags/formtools" prefix="ft">
<cfimport taglib="/farcry/plugins/farcrygreybox/tags" prefix="gb">
<cfimport taglib="/farcry/core/tags/container" prefix="con">

<!--- include standard header --->
<cfmodule 
	template="/farcry/projects/#application.applicationname#/webskin/includes/dmHeader.cfm"
	pagetitle="#stObj.title#"
	layoutclass="type-b">

<cfoutput>
<div id="content">
	<div id="breadcrumb">
		</cfoutput><skin:breadcrumb separator=" / " includeSelf=0 here="#stobj.title#"><cfoutput>
	</div>
	<h1>#stObj.Title#</h1>
	#stObj.Body#
	</cfoutput>
	
	<cfoutput><div style="display:block; text-align:center; padding-left:20px;"></cfoutput>
	<cfloop from="1" to="#arrayLen(stobj.aObjectIDs)#" index="i">
		
		<cfoutput><table cellspacing="5" align="left" style="float:left; width:140px;"><tr><td valign="top"></cfoutput>
			<ft:object objectid="#stobj.aObjectIDs[i]#" lfields="thumbnailimage,sourceimage,objectid,alt,title" format="display" r_stfields="stfields" />
			<gb:imageSet imageurl="#stfields.sourceimage.value#" title="#stfields.title.value#">
				<cfoutput><img src="#stfields.thumbnailimage.value#" alt="#stfields.alt.value#" class="thumbnailborder" style="margin:3px" /></cfoutput>
			</gb:imageSet>
			<cfoutput></td></tr><cfif stObj.displayCaptions EQ 1><tr><td valign="top" align="center" class="gallerytext"></cfif></cfoutput>			
				<cfoutput><cfif stObj.displayCaptions EQ 1>#stfields.title.value#</cfif></cfoutput>
		<cfoutput><cfif stObj.displayCaptions EQ 1></td></tr></cfif></table>
		<!--- Set number of images per row by changing the mod value --->
		<cfif i mod stObj.columns eq 0><br style="clear:both"></cfif></cfoutput>
		
	</cfloop>
	<cfoutput></div></cfoutput>

	<con:container label="#stobj.objectID#_bottom">
	<cfinclude template="/farcry/projects/#application.applicationname#/webskin/includes/dmUtility.cfm">	
	<cfoutput>

</cfoutput>

<!--- include standard footers --->
<cfinclude template="/farcry/projects/#application.applicationname#/webskin/includes/dmFooter.cfm">

<cfsetting enablecfoutputonly="false" />